/*
 * Copyright 2007-2012, Sualeh Fatehi <sualeh@hotmail.com>
 * 
 * This work is licensed under the Creative Commons Attribution 3.0 License. 
 * To view a copy of this license, visit 
 * http://creativecommons.org/licenses/by/3.0/ 
 * or send a letter to 
 * Creative Commons
 * 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
 */
package sf.event.dao;


import java.util.Collection;

import javax.persistence.EntityManager;

import org.springframework.stereotype.Repository;

import sf.event.model.Event;

@Repository
public class EventDao
  extends DataAccessOperator<Event>
{

  public EventDao()
  {
    super(null);
  }

  public EventDao(final EntityManager em)
  {
    super(em);
  }

  public Event find(final long id)
  {
    return super.find(Event.class, id);
  }

  public Collection<Event> findAll()
  {
    return super.findAll(Event.class);
  }

}
